package com.yh.service.impl;

import com.yh.Dao.IVoteDao;
import com.yh.Dao.Impl.VoteDaoImpl;
import com.yh.service.IVoteService;

import java.util.List;

public class Voteservice implements IVoteService {
    IVoteDao itd=new VoteDaoImpl();

    @Override
    public int addVote(int id){
        return itd.addVote(id);
    }

    @Override
    public List showAll(){
        return itd.showAll();
    }
}
